<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<div>
		<p>日照香炉生紫烟</p>
		<p>遥看瀑布挂前川</p>
		<p>飞流直下三千尺</p>
		<p>疑是银河落九天</p>
	</div>
	<script type="text/javascript">
		let div = document.getElementsByTagName("div")[0]

		let p = document.createElement("p")
		p.innerText = "找他来到卡欧雅典"
		//  replaceChild("要替换的新内容","要替换的旧内容") 替换者父元素
		div.replaceChild(p, div.children[1])
	</script>
</body>
</html>